﻿@model Leo.Blog.ViewModel.SysModule.SysModuleVM
@*@{
    ViewBag.Title = "增加模组";
    Layout = null;
}*@
<div class="bjui-pageContent">
    <form action="/ModuleManage/Add" class="pageForm" data-toggle="validate">
        <table class="table table-condensed">
            <tbody>

                <tr>
                    <td>
                        @Html.HiddenFor(m => m.ModuleId)
                        <label for="ModuleName" class="control-label x90">模组名称：</label>
                        <input type="text" name="ModuleName" id="ModuleName" value="@Model.ModuleName"
                               data-rule="required">
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="ModuleDesc" class="control-label x90">模组描述：</label>
                        <input type="text" name="ModuleDesc" id="ModuleDesc" value="@Model.ModuleDesc" cols="30" rows="1" data-toggle="autoheight">
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="WebUrl" class="control-label x90">链接地址：</label>
                        <input type="text" id="WebUrl" name="WebUrl" value="@Model.WebUrl" data-rule="required">
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="ParentName" class="control-label x90">父模组：</label>
                        <input type="hidden" id="ParentModuleId" name="ParentModuleId" value="@Model.ParentModuleId">
                        <input type="text" name="ParentName" id="ParentName"
                               data-toggle="selectztree" data-rule="required" data-tree="#selectZtree" value="@Model.ParentName">
                        <ul id="selectZtree" class="ztree hide" data-toggle="ztree"></ul>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="SortNo" class="control-label x90">排序号：</label>
                        <input type="text" id="SortNo" name="SortNo" value="@Model.SortNo" data-rule="required">
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="IconName" class="control-label x90">图标：</label>
                        <input type="text" id="IconName" name="IconName" value="@Model.IconName">
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="IsAutoExpend" class="control-label x90">是否自动展开：</label>

                        <select name="IsAutoExpend" id="IsAutoExpend" data-rule="required">
                            <option value="0" @if (Model.IsAutoExpend == 0) { <text> selected="selected" </text>       }>否</option>
                            <option value="1" @if (Model.IsAutoExpend == 1) { <text> selected="selected" </text>       }>是</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label for="IsEnable" class="control-label x90">是否可用：</label>
                        <select name="IsEnable" id="IsEnable" data-rule="required">
                            <option value="1" @if (Model.IsEnable == 1) { <text> selected="selected" </text>        }>是</option>
                            <option value="0" @if (Model.IsEnable == 0) { <text> selected="selected" </text>        }>否</option>
                        </select>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</div>
<div class="bjui-pageFooter">
    <ul>
        <li><button type="button" class="btn-close">关闭</button></li>
        <li><button type="submit" class="btn-green">保存</button></li>
    </ul>
</div>

